package com.guaoran.interview.spring.scope.service;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author : 孤傲然
 * @description : {@link Lazy } 即：lazy=true ，getBean 时才会调用 初始化方法
 * @date :2019/12/10 20:58
 */
@Lazy
@Service
public class LazyService {
//    @PostConstruct
    public void init(){
        System.out.println("LazyService init ");
    }
}
